<header class="index-width-hack">
  <div class="content">
    <%= link_to image_tag('logo.png',alt: t('home.name')), root_path, class: 'logo'%>
    <nav>
      <ul>
        <%= header_for(params[:controller], params[:flag])%>
      </ul>
    </nav>
    <div class="nav-toolbar">
      <a href="javascript:void(0)" class="weixin">微信平台
        <%= image_tag 'wx-qrcode.png',alt: 'lingpei',style: 'display:none'%>
      </a>
      <a href="http://weibo.com" target="_blank" class="weibo">官方微博</a>
      <%= link_to '简体中文', '/?locale=zh-CN',class: 'zh' %>
      <%= link_to '繁体中文', '/?locale=zh-TW',class: 'tw' %>
      <%= link_to 'English', '/?locale=en',class: 'en' %>
    </div>
  </div>
</header>

